<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2><i class="icon-edit"></i> Edit User</h2>
			<div class="box-icon">
				<!-- <a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a> -->
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
				<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
			</div>
		</div>
		<div class="box-content">
			<form class="form-horizontal" method='post' action='<?php echo base_url();?>index.php/user/save/<?php echo $data['id_user']?>'>
			  <fieldset>
			  	<div class="control-group">
				  <label class="control-label" for="date01">Group</label>
				  <div class="controls">
					<select id="selectError3" name='level'>
						<?php foreach($user_level as $item){?>
							<option value='<?php echo $item['lv_id']?>' <?php if($data['level'] == $item['lv_id']) echo 'selected'?>><?php echo $item['lv_name']?></option>
						<?php }?>
					</select>
				  </div>
				</div>
				<div class="control-group">
				  <label class="control-label" for="date01">User Name</label>
				  <div class="controls">
					<input type="text" class="input-xlarge" name='username' value="<?php echo $data['username']?>"/>
				  </div>
				</div>
				<div class="control-group">
				  <label class="control-label" for="date01">Password</label>
				  <div class="controls">
					<input type="password" class="input-xlarge" name='password' />
					* Biarkan kosong jika tidak ingin diubah.
				  </div>
				</div>
				<div class="control-group">
				  <label class="control-label" for="date01">status</label>
				  <div class="controls">
					<select id="selectError3" name='blokir'>
						<option value='Y' <?php if($data['blokir'] == 'Y') echo 'selected'?>>Y</option>
						<option value='N' <?php if($data['blokir'] == 'N') echo 'selected'?>>N</option>
					</select>
				  </div>
				</div>
				<div class="form-actions">
				  <button type="submit" class="btn btn-primary">Save changes</button>
				  <a href='<?php echo base_url();?>index.php/user' class="btn">Cancel</a>
				</div>
			  </fieldset>
			</form>   
		</div>
	</div><!--/span-->
</div><!--/row-->